package com.zhao;

import com.zhao.builder.impl.LenovoBuilder;
import com.zhao.objectAdapter.pojo.Computer;

public class Test {
    public static void main(String[] args) {
        LenovoBuilder lenovoBuilder = new LenovoBuilder();
        Creater creater = new Creater(lenovoBuilder);
        creater.construct("联想显示器", "thinkpad键盘");
        Computer computer = lenovoBuilder.buildComputer();
        System.out.println(computer);

        creater.construct("京东方显示器", "雷珀键盘");
        Computer computer01 = lenovoBuilder.buildComputer();
        System.out.println(computer01);

    }
}
